package com.b3434.Processor;

import org.apache.avro.generic.GenericRecord;

/**
 * Created by Lee on 2017/3/21 0021.
 */
public class OriginProcessor extends Processor {
    Processor processor;
    public OriginProcessor(Processor processor) {
        this.processor = processor;
        this.parameter=processor.parameter;
    }
    @Override
    public GenericRecord process(String originStr) {
        dataMap=processor.process(originStr);
        dataMap.put("originstr",originStr);

        return dataMap;
    }
}
